import type { MockEndpoint, RouteParams } from '../types'

export const settingsEndpoints: Record<string, MockEndpoint> = {
  '/api/settings': {
    GET: () => ({
      code: 0,
      msg: '操作成功',
      data: {
        logRetentionDays: 30,
        maxConcurrentTasks: 5,
        enableNotifications: true,
        notificationEmail: 'admin@example.com'
      }
    }),
    PUT: (_url: string, _params?: RouteParams, data?: any) => ({
      code: 0,
      msg: '设置更新成功',
      data: data
    })
  },
  '/api/system/info': {
    GET: () => ({
      code: 0,
      msg: '操作成功',
      data: {
        version: '1.0.0',
        uptime: '2天 5小时 30分钟',
        activeTasks: 2,
        totalTasks: 4,
        os: 'windows',
        arch: 'amd64',
        memory: '25.6 MB'
      }
    })
  }
} 